package com.trade.domain;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Administrator on 2016/10/15.
 `CommodityID` int(11) NOT NULL AUTO_INCREMENT,
 `CommodityName` varchar(200) DEFAULT NULL,
 `CommodityType` varchar(100) DEFAULT NULL,
 `CommodityImage` varchar(500) DEFAULT NULL,
 `CommodityDesc` varchar(600) DEFAULT NULL,
 `UploadTime` date DEFAULT NULL,
 `Status` int(11) DEFAULT NULL,
 `Price` int(11) DEFAULT NULL,
 `Score` varchar(200) DEFAULT NULL,
 `SellerID` int(11) DEFAULT NULL,
 `SellerNickName` varchar(200) DEFAULT NULL,
 `SellerQQ` varchar(200) DEFAULT NULL,
 */
@Entity
@Table(name = "itemsell")
public class ItemSellDo{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CommodityID")
    private Integer commodityID;
    @Column(name = "CommodityName")
    private String commodityName;
    @Column(name = "CommodityType")
    private String commodityType;
    @Column(name = "CommodityImage")
    private String commodityImage;
    @Column(name = "CommodityDesc")
    private String commodityDesc;
    @Column(name = "UploadTime")
    private Date uploadTime;
    @Column(name = "Status")
    private Integer status;
    @Column(name = "Price")
    private Integer price;
    @Column(name = "Score")
    private String score;
    @Column(name = "SellerId")
    private Integer sellerId;
    @Column(name = "SellerNickName")
    private String sellerNickName;
    @Column(name = "SellerQQ")
    private String sellerQQ;

    public Integer getCommodityID() {
        return commodityID;
    }

    public void setCommodityID(Integer commodityID) {
        this.commodityID = commodityID;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCommodityType() {
        return commodityType;
    }

    public void setCommodityType(String commodityType) {
        this.commodityType = commodityType;
    }

    public String getCommodityImage() {
        return commodityImage;
    }

    public void setCommodityImage(String commodityImage) {
        this.commodityImage = commodityImage;
    }

    public String getCommodityDesc() {
        return commodityDesc;
    }

    public void setCommodityDesc(String commodityDesc) {
        this.commodityDesc = commodityDesc;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public String getSellerNickName() {
        return sellerNickName;
    }

    public void setSellerNickName(String sellerNickName) {
        this.sellerNickName = sellerNickName;
    }

    public String getSellerQQ() {
        return sellerQQ;
    }

    public void setSellerQQ(String sellerQQ) {
        this.sellerQQ = sellerQQ;
    }
}
